package com.bls.dao;

import com.bls.entity.Analyse;
import com.bls.entity.Draft;
import com.bls.entity.query.DraftQuery;
import com.bls.entity.vo.DraftVo;
import com.fy.toolhelper.db.IBaseDao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * (Draft)表数据库访问层
 *
 * @author makejava
 * @since 2022-01-10 18:42:43
 */
public interface DraftDao  extends IBaseDao<Draft> {

    List<DraftVo> pageConditionDraftList(Connection dbConnection, DraftQuery draftQuery, Integer pageSize, Integer current) throws SQLException;

    int deleteDraft(Connection dbConnection, Long draftId) throws SQLException;

    int pageConditionDraftTotal(Connection dbConnection, DraftQuery draftQuery) throws SQLException;

    Draft selectDraftById(Connection dbConnection, Long draftId) throws SQLException;

    List<DraftVo> pageConditionAnalyseRunningStatusList(Connection connection, DraftQuery draftQuery, Integer pageSize, Integer current) throws SQLException;

    int pageConditionAnalyseRunningStatusTotal(Connection connection, DraftQuery draftQuery) throws SQLException;
}